package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.YqgCheckoutMethodMapper;
import com.ruoyi.project.domain.YqgCheckoutMethod;
import com.ruoyi.project.service.IYqgCheckoutMethodService;

/**
 * 结账方式Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-15
 */
@Service
public class YqgCheckoutMethodServiceImpl implements IYqgCheckoutMethodService 
{
    @Autowired
    private YqgCheckoutMethodMapper yqgCheckoutMethodMapper;

    /**
     * 查询结账方式
     * 
     * @param id 结账方式主键
     * @return 结账方式
     */
    @Override
    public YqgCheckoutMethod selectYqgCheckoutMethodById(Long id)
    {
        return yqgCheckoutMethodMapper.selectYqgCheckoutMethodById(id);
    }

    /**
     * 查询结账方式列表
     * 
     * @param yqgCheckoutMethod 结账方式
     * @return 结账方式
     */
    @Override
    public List<YqgCheckoutMethod> selectYqgCheckoutMethodList(YqgCheckoutMethod yqgCheckoutMethod)
    {
        return yqgCheckoutMethodMapper.selectYqgCheckoutMethodList(yqgCheckoutMethod);
    }

    /**
     * 新增结账方式
     * 
     * @param yqgCheckoutMethod 结账方式
     * @return 结果
     */
    @Override
    public int insertYqgCheckoutMethod(YqgCheckoutMethod yqgCheckoutMethod)
    {
        return yqgCheckoutMethodMapper.insertYqgCheckoutMethod(yqgCheckoutMethod);
    }

    /**
     * 修改结账方式
     * 
     * @param yqgCheckoutMethod 结账方式
     * @return 结果
     */
    @Override
    public int updateYqgCheckoutMethod(YqgCheckoutMethod yqgCheckoutMethod)
    {
        return yqgCheckoutMethodMapper.updateYqgCheckoutMethod(yqgCheckoutMethod);
    }

    /**
     * 批量删除结账方式
     * 
     * @param ids 需要删除的结账方式主键
     * @return 结果
     */
    @Override
    public int deleteYqgCheckoutMethodByIds(Long[] ids)
    {
        return yqgCheckoutMethodMapper.deleteYqgCheckoutMethodByIds(ids);
    }

    /**
     * 删除结账方式信息
     * 
     * @param id 结账方式主键
     * @return 结果
     */
    @Override
    public int deleteYqgCheckoutMethodById(Long id)
    {
        return yqgCheckoutMethodMapper.deleteYqgCheckoutMethodById(id);
    }
}
